Filling in a form client-side [Javascript]
Posted
by Hawker
on Stack Overflow
See other posts from Stack Overflow
or by Hawker
Published on 2009-04-08T21:47:17Z
Indexed on
2010/05/13
18:04 UTC
Read the original article
Hit count: 194
JavaScript
|vista-sidebar
I'm coding up a small Vista/7 sidebar gadget for our web based employee schedule system and I've run into a Javascript problem that my Google-FU can't solve. I can't figure out how to fill in a login form from the client.
I'm creating a new ActiveXObject, navigating to the site, but lost as to where to go from here.
var conn = new ActiveXObject("Microsoft.XMLHTTP");
conn.open("POST", "url", false);
conn.send(null);
Can access the form from the ActiveXObject based on the form id? I'd also assume I'm going to need to change a few headers for a POST vs. a GET?
Thanks for any tips or links to references! I can't seem to find much and JavaScript isn't my forte.
© Stack Overflow or respective owner